package com.hzz.mybatisplusdemo.adasalarm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName com.hzz.mybatisplusdemo.adasalarm
 */
@TableName(value = "adasalarm")
@Data
public class Adasalarm implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @TableField(value = "alarmId")
    private Integer alarmId;

    /**
     * 
     */
    @TableField(value = "alarmNo")
    private String alarmNo;

    /**
     * 
     */
    @TableField(value = "alarmSource")
    private String alarmSource;

    /**
     * 
     */
    @TableField(value = "alarmStatus")
    private Integer alarmStatus;

    /**
     * 
     */
    @TableField(value = "alarmTime")
    private Date alarmTime;

    /**
     * 
     */
    @TableField(value = "alarmType")
    private String alarmType;

    /**
     * 
     */
    @TableField(value = "altitude")
    private Integer altitude;

    /**
     * 
     */
    @TableField(value = "attachmentCount")
    private Integer attachmentCount;

    /**
     * 
     */
    @TableField(value = "deviateType")
    private Integer deviateType;

    /**
     * 
     */
    @TableField(value = "fatigueDegree")
    private Integer fatigueDegree;

    /**
     * 
     */
    @TableField(value = "frontCarDistance")
    private Integer frontCarDistance;

    /**
     * 
     */
    @TableField(value = "frontCarSpeed")
    private Integer frontCarSpeed;

    /**
     * 
     */
    @TableField(value = "gpsTime")
    private Date gpsTime;

    /**
     * 
     */
    @TableField(value = "latitude")
    private Double latitude;

    /**
     * 
     */
    @TableField(value = "level")
    private Integer level;

    /**
     * 
     */
    @TableField(value = "longitude")
    private Double longitude;

    /**
     * 
     */
    @TableField(value = "roadRecognitionData")
    private Integer roadRecognitionData;

    /**
     * 
     */
    @TableField(value = "roadRecognitionMark")
    private Integer roadRecognitionMark;

    /**
     * 
     */
    @TableField(value = "sn")
    private Integer sn;

    /**
     * 
     */
    @TableField(value = "speed")
    private Integer speed;

    /**
     * 
     */
    @TableField(value = "terminalId")
    private String terminalId;

    /**
     * 
     */
    @TableField(value = "tirePressureAlarmDetail")
    private String tirePressureAlarmDetail;

    /**
     * 
     */
    @TableField(value = "vehicleStatus")
    private Integer vehicleStatus;

    /**
     * 
     */
    @TableField(value = "createDate")
    private Date createDate;

    /**
     * 
     */
    @TableField(value = "plateNo")
    private String plateNo;

    /**
     * 
     */
    @TableField(value = "vehicleId")
    private Long vehicleId;

    /**
     * 
     */
    @TableField(value = "location")
    private String location;

    /**
     * 
     */
    @TableField(value = "simNo")
    private String simNo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

//    @Override
//    public boolean equals(Object that) {
//        if (this == that) {
//            return true;
//        }
//        if (that == null) {
//            return false;
//        }
//        if (getClass() != that.getClass()) {
//            return false;
//        }
//        Adasalarm other = (Adasalarm) that;
//        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
//            && (this.getAlarmId() == null ? other.getAlarmId() == null : this.getAlarmId().equals(other.getAlarmId()))
//            && (this.getAlarmNo() == null ? other.getAlarmNo() == null : this.getAlarmNo().equals(other.getAlarmNo()))
//            && (this.getAlarmSource() == null ? other.getAlarmSource() == null : this.getAlarmSource().equals(other.getAlarmSource()))
//            && (this.getAlarmStatus() == null ? other.getAlarmStatus() == null : this.getAlarmStatus().equals(other.getAlarmStatus()))
//            && (this.getAlarmTime() == null ? other.getAlarmTime() == null : this.getAlarmTime().equals(other.getAlarmTime()))
//            && (this.getAlarmType() == null ? other.getAlarmType() == null : this.getAlarmType().equals(other.getAlarmType()))
//            && (this.getAltitude() == null ? other.getAltitude() == null : this.getAltitude().equals(other.getAltitude()))
//            && (this.getAttachmentCount() == null ? other.getAttachmentCount() == null : this.getAttachmentCount().equals(other.getAttachmentCount()))
//            && (this.getDeviateType() == null ? other.getDeviateType() == null : this.getDeviateType().equals(other.getDeviateType()))
//            && (this.getFatigueDegree() == null ? other.getFatigueDegree() == null : this.getFatigueDegree().equals(other.getFatigueDegree()))
//            && (this.getFrontCarDistance() == null ? other.getFrontCarDistance() == null : this.getFrontCarDistance().equals(other.getFrontCarDistance()))
//            && (this.getFrontCarSpeed() == null ? other.getFrontCarSpeed() == null : this.getFrontCarSpeed().equals(other.getFrontCarSpeed()))
//            && (this.getGpsTime() == null ? other.getGpsTime() == null : this.getGpsTime().equals(other.getGpsTime()))
//            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
//            && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
//            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
//            && (this.getRoadRecognitionData() == null ? other.getRoadRecognitionData() == null : this.getRoadRecognitionData().equals(other.getRoadRecognitionData()))
//            && (this.getRoadRecognitionMark() == null ? other.getRoadRecognitionMark() == null : this.getRoadRecognitionMark().equals(other.getRoadRecognitionMark()))
//            && (this.getSn() == null ? other.getSn() == null : this.getSn().equals(other.getSn()))
//            && (this.getSpeed() == null ? other.getSpeed() == null : this.getSpeed().equals(other.getSpeed()))
//            && (this.getTerminalId() == null ? other.getTerminalId() == null : this.getTerminalId().equals(other.getTerminalId()))
//            && (this.getTirePressureAlarmDetail() == null ? other.getTirePressureAlarmDetail() == null : this.getTirePressureAlarmDetail().equals(other.getTirePressureAlarmDetail()))
//            && (this.getVehicleStatus() == null ? other.getVehicleStatus() == null : this.getVehicleStatus().equals(other.getVehicleStatus()))
//            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
//            && (this.getPlateNo() == null ? other.getPlateNo() == null : this.getPlateNo().equals(other.getPlateNo()))
//            && (this.getVehicleId() == null ? other.getVehicleId() == null : this.getVehicleId().equals(other.getVehicleId()))
//            && (this.getLocation() == null ? other.getLocation() == null : this.getLocation().equals(other.getLocation()))
//            && (this.getSimNo() == null ? other.getSimNo() == null : this.getSimNo().equals(other.getSimNo()));
//    }


}